package com.xiaoyun.alllearning.domain.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.xiaoyun.alllearning.util.LocalDateTimesStringConverter;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
public class UserExportDTO implements Serializable {

    @ExcelProperty("用户名")
    private String username;
    @ExcelProperty("年龄")
    private Integer age;
    @ExcelProperty("版本号")
    private Long version;
    @ExcelProperty(value = "创建时间", converter = LocalDateTimesStringConverter.class)
    @DateTimeFormat("yyyy年MM月dd日HH时mm分ss秒SSS毫秒")
    private LocalDateTime created;
}
